//
//  SmartLinkExportObject.h
//  SmartLink
//
//  Created by Gicisky on 16/3/2.
//  Copyright © 2016年 GICISKY. All rights reserved.
//

#import <Foundation/Foundation.h>


//配网成功回调
typedef void (^HLKSmartConnectionSuccess) (void);

//配网失败回调
typedef void (^HLKSmartConnectionFailure) (void);


@protocol DeviceScanDelegate <NSObject>
//局域网扫描设备回调
-(void)onDeviceScaned:(NSDictionary *)deviceDic ;
@end


@interface SmartLinkExportObject : NSObject

@property(nonatomic,copy) HLKSmartConnectionSuccess connectionSuccess;
@property(nonatomic,copy) HLKSmartConnectionFailure connectionFailure;


/***
 *
 *
 *一键配置
 *ssidStr :wifi名称
 *password:wifi密码
 *
 */
- (void)connectWithSSID:(NSString *)ssidStr
               password:(NSString *)password;

/**
 *
 *终止配置
 */
- (void)closeConnection;

/*
 *获取当前手机连接的wifi热点名称
 */
+ (id)fetchSSIDInfo ;

/*
 *
 *扫描设备
 */
-(void)doDeviceScan;

/*
 *
 *扫描局域网设备回调代理
 *
 */
@property (nonatomic, assign) id <DeviceScanDelegate> delegate;
@end
